package com.bw.module_house.repo

import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.bw.module_house.api.HouseApiService
/**
 * 智慧园区-03-房源信息V1.1-史建军-20250514
 */
class HouseRepo:BaseRepository<HouseApiService>() {
    override fun createApiServer(): HouseApiService =OkHttpClientManager.retrofitInstance.create(HouseApiService::class.java)

    suspend fun getHouseList()=apiService.getHouseList()
    suspend fun getHouseListById(id:Int)=apiService.getHouseListById(id)
    suspend fun getHouseListSearch(keyword:String)=apiService.getHouseListSearch(keyword)
}